﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 销售订单AITDTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class SOAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public SOAITDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
		
		
		
		
		
		
		
		
		
		
					BusinessType= 0; 
				
		
		
		
					IsFillDoc=false; 
		
		
					TCToACExchRate=0m; 
					ACToFCRate=0m; 

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        			if (this.SOLines!=null)
			{
				foreach(ufida.u9.ait.openapi.SOLineAITDTOData objdata in this.SOLines)
				{
					objdata.DoSerializeKeyList(dict);
				}
			}
				        			if (this.TC != null) 
			{
				this.TC.DoSerializeKeyList(dict);
			}
	        			if (this.TaxSchedule != null) 
			{
				this.TaxSchedule.DoSerializeKeyList(dict);
			}
	        			if (this.ShipRule != null) 
			{
				this.ShipRule.DoSerializeKeyList(dict);
			}
	        			if (this.Seller != null) 
			{
				this.Seller.DoSerializeKeyList(dict);
			}
	        			if (this.SaleDepartment != null) 
			{
				this.SaleDepartment.DoSerializeKeyList(dict);
			}
	        			if (this.Payer != null) 
			{
				this.Payer.DoSerializeKeyList(dict);
			}
	        			if (this.Org != null) 
			{
				this.Org.DoSerializeKeyList(dict);
			}
	        			if (this.OrderBy != null) 
			{
				this.OrderBy.DoSerializeKeyList(dict);
			}
	        			if (this.DocumentType != null) 
			{
				this.DocumentType.DoSerializeKeyList(dict);
			}
	        			if (this.ConfirmTerm != null) 
			{
				this.ConfirmTerm.DoSerializeKeyList(dict);
			}
	        			if (this.ConfirmAccording != null) 
			{
				this.ConfirmAccording.DoSerializeKeyList(dict);
			}
	        	        	        	        	        			if (this.DescFlexField != null) 
			{
				this.DescFlexField.DoSerializeKeyList(dict);
			}
	        	        			if (this.AC != null) 
			{
				this.AC.DoSerializeKeyList(dict);
			}
	        			if (this.FC != null) 
			{
				this.FC.DoSerializeKeyList(dict);
			}
	        	        
		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public SOAITDTOData(  List<ufida.u9.ait.openapi.SOLineAITDTOData> sOLines  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData tC  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData taxSchedule  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData shipRule  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData seller  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData saleDepartment  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData payer  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData org  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData orderBy  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData documentType  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData confirmTerm  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData confirmAccording  , System.Int32 businessType  , System.String businessDate  , System.String docNo  , System.String memo  , ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData descFlexField  , System.Boolean isFillDoc  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData aC  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData fC  , System.Decimal tCToACExchRate  , System.Decimal aCToFCRate  )
		{
			initData();
			this.SOLines = sOLines;
			this.TC = tC;
			this.TaxSchedule = taxSchedule;
			this.ShipRule = shipRule;
			this.Seller = seller;
			this.SaleDepartment = saleDepartment;
			this.Payer = payer;
			this.Org = org;
			this.OrderBy = orderBy;
			this.DocumentType = documentType;
			this.ConfirmTerm = confirmTerm;
			this.ConfirmAccording = confirmAccording;
			this.BusinessType = businessType;
			this.BusinessDate = businessDate;
			this.DocNo = docNo;
			this.Memo = memo;
			this.DescFlexField = descFlexField;
			this.IsFillDoc = isFillDoc;
			this.AC = aC;
			this.FC = fC;
			this.TCToACExchRate = tCToACExchRate;
			this.ACToFCRate = aCToFCRate;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 销售订单行
		/// 销售订单AITDTO.Misc.销售订单行
		/// </summary>
		private List<ufida.u9.ait.openapi.SOLineAITDTOData> m_sOLines ;
		[DataMember(IsRequired=false)]
		public List<ufida.u9.ait.openapi.SOLineAITDTOData> SOLines
		{
			get	
			{	
				if (m_sOLines == null )
				{
					List<ufida.u9.ait.openapi.SOLineAITDTOData> n_m_list = new List<ufida.u9.ait.openapi.SOLineAITDTOData>() ;
					m_sOLines = n_m_list ;
				}
				return m_sOLines ;
			}
			set	
			{	
				m_sOLines = value ;	
			}
		}
			
		

		/// <summary>
		/// 交易币
		/// 销售订单AITDTO.Misc.交易币
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_tC ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData TC
		{
			get	
			{	
				return m_tC ;
			}
			set	
			{	
				m_tC = value ;	
			}
		}
			
		

		/// <summary>
		/// 税组合
		/// 销售订单AITDTO.Misc.税组合
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_taxSchedule ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData TaxSchedule
		{
			get	
			{	
				return m_taxSchedule ;
			}
			set	
			{	
				m_taxSchedule = value ;	
			}
		}
			
		

		/// <summary>
		/// 出货原则
		/// 销售订单AITDTO.Misc.出货原则
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_shipRule ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ShipRule
		{
			get	
			{	
				return m_shipRule ;
			}
			set	
			{	
				m_shipRule = value ;	
			}
		}
			
		

		/// <summary>
		/// 业务员
		/// 销售订单AITDTO.Misc.业务员
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_seller ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Seller
		{
			get	
			{	
				return m_seller ;
			}
			set	
			{	
				m_seller = value ;	
			}
		}
			
		

		/// <summary>
		/// 部门
		/// 销售订单AITDTO.Misc.部门
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_saleDepartment ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData SaleDepartment
		{
			get	
			{	
				return m_saleDepartment ;
			}
			set	
			{	
				m_saleDepartment = value ;	
			}
		}
			
		

		/// <summary>
		/// 付款客户
		/// 销售订单AITDTO.Misc.付款客户
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_payer ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Payer
		{
			get	
			{	
				return m_payer ;
			}
			set	
			{	
				m_payer = value ;	
			}
		}
			
		

		/// <summary>
		/// 组织
		/// 销售订单AITDTO.Misc.组织
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_org ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Org
		{
			get	
			{	
				return m_org ;
			}
			set	
			{	
				m_org = value ;	
			}
		}
			
		

		/// <summary>
		/// 客户
		/// 销售订单AITDTO.Misc.客户
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_orderBy ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData OrderBy
		{
			get	
			{	
				return m_orderBy ;
			}
			set	
			{	
				m_orderBy = value ;	
			}
		}
			
		

		/// <summary>
		/// 单据类型
		/// 销售订单AITDTO.Misc.单据类型
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_documentType ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData DocumentType
		{
			get	
			{	
				return m_documentType ;
			}
			set	
			{	
				m_documentType = value ;	
			}
		}
			
		

		/// <summary>
		/// 立账条件
		/// 销售订单AITDTO.Misc.立账条件
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_confirmTerm ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ConfirmTerm
		{
			get	
			{	
				return m_confirmTerm ;
			}
			set	
			{	
				m_confirmTerm = value ;	
			}
		}
			
		

		/// <summary>
		/// 立账依据
		/// 销售订单AITDTO.Misc.立账依据
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_confirmAccording ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ConfirmAccording
		{
			get	
			{	
				return m_confirmAccording ;
			}
			set	
			{	
				m_confirmAccording = value ;	
			}
		}
			
		

		/// <summary>
		/// 业务类型
		/// 销售订单AITDTO.Misc.业务类型
		/// </summary>
		private System.Int32 m_businessType ;
		[DataMember(IsRequired=false)]
		public System.Int32 BusinessType
		{
			get	
			{	
				return m_businessType ;
			}
			set	
			{	
				m_businessType = value ;	
			}
		}
			
		

		/// <summary>
		/// 日期
		/// 销售订单AITDTO.Misc.日期
		/// </summary>
		private System.String m_businessDate ;
		[DataMember(IsRequired=false)]
		public System.String BusinessDate
		{
			get	
			{	
				return m_businessDate ;
			}
			set	
			{	
				m_businessDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 单号
		/// 销售订单AITDTO.Misc.单号
		/// </summary>
		private System.String m_docNo ;
		[DataMember(IsRequired=false)]
		public System.String DocNo
		{
			get	
			{	
				return m_docNo ;
			}
			set	
			{	
				m_docNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 备注
		/// 销售订单AITDTO.Misc.备注
		/// </summary>
		private System.String m_memo ;
		[DataMember(IsRequired=false)]
		public System.String Memo
		{
			get	
			{	
				return m_memo ;
			}
			set	
			{	
				m_memo = value ;	
			}
		}
			
		

		/// <summary>
		/// 描述性弹性域
		/// 销售订单AITDTO.Misc.描述性弹性域
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData m_descFlexField ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData DescFlexField
		{
			get	
			{	
				return m_descFlexField ;
			}
			set	
			{	
				m_descFlexField = value ;	
			}
		}
			
		

		/// <summary>
		/// 补单
		/// 销售订单AITDTO.Misc.补单
		/// </summary>
		private System.Boolean m_isFillDoc ;
		[DataMember(IsRequired=false)]
		public System.Boolean IsFillDoc
		{
			get	
			{	
				return m_isFillDoc ;
			}
			set	
			{	
				m_isFillDoc = value ;	
			}
		}
			
		

		/// <summary>
		/// 核币
		/// 销售订单AITDTO.Misc.核币
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_aC ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData AC
		{
			get	
			{	
				return m_aC ;
			}
			set	
			{	
				m_aC = value ;	
			}
		}
			
		

		/// <summary>
		/// 本币
		/// 销售订单AITDTO.Misc.本币
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_fC ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData FC
		{
			get	
			{	
				return m_fC ;
			}
			set	
			{	
				m_fC = value ;	
			}
		}
			
		

		/// <summary>
		/// 原币-核币汇率
		/// 销售订单AITDTO.Misc.原币-核币汇率
		/// </summary>
		private System.Decimal m_tCToACExchRate ;
		[DataMember(IsRequired=false)]
		public System.Decimal TCToACExchRate
		{
			get	
			{	
				return m_tCToACExchRate ;
			}
			set	
			{	
				m_tCToACExchRate = value ;	
			}
		}
			
		

		/// <summary>
		/// 核币-本币汇率
		/// 销售订单AITDTO.Misc.核币-本币汇率
		/// </summary>
		private System.Decimal m_aCToFCRate ;
		[DataMember(IsRequired=false)]
		public System.Decimal ACToFCRate
		{
			get	
			{	
				return m_aCToFCRate ;
			}
			set	
			{	
				m_aCToFCRate = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																																												
		#endregion 
	} 	
}
